package com.itheima.pinda.authority.biz.dao.auth;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pinda.authority.dto.auth.ResourceQueryDTO;
import com.itheima.pinda.authority.entity.auth.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 资源mapper接口
 * @Author: ysf
 * @CreateTime: 2024-11-13  16:00
 * @Version: 1.0
 */

@Repository
public interface ResourceMapper extends BaseMapper<Resource> {

    /**
     * 查询 用户拥有的资源权限
     */
    List<Resource> findVisibleResource(ResourceQueryDTO resource);
}
